<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
  <div id="workspace" class="col-md-12">
  		 <br/>
                <ol class="breadcrumb">
                    <li><a href="index.jsp"><span class="glyphicon glyphicon-home"></span>&nbsp;后台首页</a></li>
                  <c:choose>
                    <c:when test="${param.good == 'change' }">
                    	<li class="active">资产入库-新增变动</li>
                    </c:when>
                    <c:when test="${param.good == 'repair' }">
                    	<li class="active">资产变动- 新增维修</li>
                    </c:when>
                    <c:otherwise>
                    	 <li class="active">资产入库-新增资产</li>
                    </c:otherwise>
                  </c:choose>
                </ol>
  <div><br>
  <div class="row">
	<div class="col-md-4"></div>  
	<div class="col-md-4">
	<c:choose>
		<c:when test="${param.good == 'change' }">
			<form class="form col-md-12 center-block" action="worker.con?work=addChange" method="post">
            <div class="form-group">
            <input type="hidden" name="work" value="addChange" />
            </div>
            <div class="form-group">
             <input type="hidden" name="past" value="${sessionScope.user.belongTo }" /> 
            </div>
            <div class="form-group">
              <input type="text" name="name" class="form-control input-lg" placeholder="name">
            </div>
            <div class="form-group">
              <input type="text" name="category" class="form-control input-lg" placeholder="category">
            </div>
			<div class="form-group">
              <input type="text" name="number1" class="form-control input-lg" placeholder="number">
            </div>
            <div class="form-group">
              <input type="text" name="address" class="form-control input-lg" placeholder="address">
            </div>
            <div class="form-group">
             <select name="now" class="form-control input-lg">
			  <option value="0">want to where</option>
			  <option value="1 ">1.校级管理处</option>
			  <option value="2">2.网安学院</option>
			  <option value="3">3.光电学院</option>
			  <option value="4">4.控制工程学院</option>
			  <option value="5">5.软件学院</option>
			  <option value="6">6.英语学院</option>
			  <option value="7">7.校外单位</option>
			  </select>
            </div>
            <div class="form-group">
              <input type="text" name="sellPrice" class="form-control input-lg" placeholder="value">
            </div>
            <div class="form-group">
              <input type="text" name="sellTime" data-format="yyyy-MM-dd" class="form-control input-lg" placeholder="time：2000-0-0">
            </div>
            <div class="form-group">
              <input type="text" name="header" class="form-control input-lg" placeholder="header">
            </div>
         <div class="row">
            	<div class="col-md-6">
            		&nbsp;&nbsp;&nbsp;&nbsp;<button class="btn btn-warning"><a href="index.jsp">close</a></button>
            	</div>
            	<div class="col-md-6">
          			<button class="pull-right success pull-right submit btn btn-success">submit</button>
            	</div>
          </div>	
          </form>
		</c:when>
		<c:when test="${param.good == 'repair'}">
			<form class="form col-md-12 center-block" action="worker.con?work=addRepair" method="post">
            <div class="form-group">
            <input type="hidden" name="work" value="addRepair" />
            </div>
            <div class="form-group">
             <input type="hidden" name="past" value="${sessionScope.user.belongTo }" /> 
            </div>
            <div class="form-group">
              <input type="text" name="id" class="form-control input-lg" placeholder="ID">
            </div>
			<div class="form-group">
              <input type="text" name="number" class="form-control input-lg" placeholder="number">
            </div>
            <div class="form-group">
              <input type="text" name="cost" class="form-control input-lg" placeholder="cost">
            </div>
            <div class="form-group">
              <input type="text" name="repair" class="form-control input-lg" placeholder="master">
            </div>
       		 <div class="row">
            	<div class="col-md-6">
            		&nbsp;&nbsp;&nbsp;&nbsp;<button class="btn btn-warning"><a href="index.jsp">close</a></button>
            	</div>
            	<div class="col-md-6">
          			<button class="pull-right success pull-right submit btn btn-success">submit</button>
            	</div>
            </div>
          </form>
		</c:when>
		<c:otherwise>
  	<form class="form col-md-12 center-block" action="worker.con?work=addAsset" method="post">
            <div class="form-group">
            <input type="hidden" name="work" value="addAsset" />
            </div>
            <div class="form-group">
            <input type="hidden" name="belongTo" value="${sessionScope.user.belongTo }" />
            </div>
            <div class="form-group">
              <input type="text" name="name" class="form-control input-lg" placeholder="name">
            </div>
            <div class="form-group">
              <input type="text" name="category" class="form-control input-lg" placeholder="category">
            </div>
			<div class="form-group">
              <input type="text" name="number" class="form-control input-lg" placeholder="number">
            </div>
            <div class="form-group">
              <input type="text" name="address" class="form-control input-lg" placeholder="address">
            </div>
            <div class="form-group">
              <input type="text" name="purchaser" class="form-control input-lg" placeholder="purchaser">
            </div>
            <div class="form-group">
              <input type="text" name="purchasingValue" class="form-control input-lg" placeholder="value">
            </div>
            <div class="form-group">
           		 <input name="storageTime" type="text" class="form-control input-lg" placeholder="time:2000-0-0"/>  
            </div>
            <div class="row">
            	<div class="col-md-6">
            		&nbsp;&nbsp;&nbsp;&nbsp;<button class="btn btn-warning"><a href="index.jsp">close</a></button>
            	</div>
            	<div class="col-md-6">
          			<button class="pull-right success pull-right submit btn btn-success">submit</button>
            	</div>
            </div>
          </form>
          </c:otherwise>
          </c:choose>
          </div>  	
         <div class="col-md-4"></div>   
	</div>
   </div>
  </div>
</body>
</html>